package com.example.metadatatest.MetaConfig;

import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * AppConfig
 *
 * 绑定了yml中元数据的提示和类型与取值
 *
 * @blame 吴经纶
 */
@ConfigurationProperties(prefix = "wjl.auto")
public class AppConfig {
    /**
    * 自定义配置类是否生效
    * */

    private  boolean enable  = true;

    private  int port = 8080;


    public boolean isEnable() {
        return enable;
    }

    public void setEnable(boolean enable) {
        this.enable = enable;
    }

    public int getPort() {
        return port;
    }

    public void setPort(int port) {
        this.port = port;
    }
}
